<?php defined('SYSPATH') or die('No direct script access.');

class Helper_AudioManager
{
    public static function get_template($step, $audio = null)
    {
        if (!array_key_exists($step, Model_Audio::$steps)) {
            throw new Model_Exception('Такого шага нет');
        }
        $step = str_replace('-', '_', $step);
        
        $content = new View('index/audio/steps/_'.$step.'_tpl');
        $content->audio = $audio;
        return $content;
    }
} 
